package com.CST.mapper.cst.ys;

import com.CST.dto.ys.YsDetailDTO;
import com.CST.entity.ys.YsAssetDetail;
import com.CST.vo.ys.AssetDetailVO;
import com.CST.vo.ys.ExpenseVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author qtx
 * @since 2023-04-21
 */
@Mapper
public interface YsAssetDetailMapper extends BaseMapper<YsAssetDetail> {


    List<AssetDetailVO> listAssetInfo(YsDetailDTO dto);
    List<AssetDetailVO> listBusinessAssetInfo(YsDetailDTO dto);

    List<ExpenseVO> listExpense(YsDetailDTO dto);
    List<ExpenseVO> listBusinessExpense(YsDetailDTO dto);

    AssetDetailVO getAssetByNum(@Param("num") Integer num,@Param("yard") Integer yard);
    AssetDetailVO getBusinessAssetByNum(@Param("num") Integer num,@Param("yard") Integer yard);
}
